//
//  InteractionListRequest.m
//  HONGQIYUN
//
//  Created by 余海华 on 2016/12/22.
//  Copyright © 2016年 Haidi. All rights reserved.
//

#import "InteractionListRequest.h"

@implementation InteractionListRequest {
    
    
    NSString *_userName;
    NSString *_page;
    NSString *_pageSize;
    NSString *_keywords;
}
- (id)initRequestWithUserName:(NSString *) userName  andPage:(NSString *) page andPageSize:(NSString *) pageSize andKeywords:(NSString*) keywords {
    
    
    if (self = [super init]) {
        
        _userName = userName;
        _page = page;
        _pageSize = pageSize;
        _keywords = keywords;
    }
    return self;
}
-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

-(NSString *)requestUrl
{
    return @"/tools/getdata.ashx?types=get_question_list";
}

-(id)requestArgument
{
    return @{
             @"userName": [_userName length]?_userName:@"",
             @"page":[_page length]?_page:@"",
             @"pageSize": [_pageSize length]?_pageSize:@"",
             @"keywords":[_keywords length]?_keywords:@""
             };
}



-(long long)cacheVersion
{
    return  1;
}

@end
